home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Graphics 2D / CopyBits vs. CopyMask / Test.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.8 KB  |  59 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        Test.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by: Tony Myles    
  7.  
  8.     Copyright:    Copyright © 1992-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 7/9/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23.  
  24. #include <Dialogs.h>
  25. #include <Fonts.h>
  26. #ifndef __QDOFFSCREEN__
  27. #include <QDOffscreen.h>
  28. #endif
  29.  
  30.  
  31. enum
  32. {
  33.     kFrameCount = 500,
  34.     kCopyBitsPictItem = 1,
  35.     kCopyBitsFramesItem = 11,
  36.     kCopyBitsTicksItem = 12,
  37.     kCopyBitsFPSItem = 13,
  38.     kCopyMaskPictItem = 2,
  39.     kCopyMaskFramesItem = 14,
  40.     kCopyMaskTicksItem = 15,
  41.     kCopyMaskFPSItem = 16,
  42.     kApplePictResID = 128,
  43.     kPixPatResID = 128
  44. };
  45.  
  46.  
  47. void LetTheGameBegin(DialogPtr srcDialogP);
  48. OSErr CreateOptimumGWorld(GWorldPtr *optGWorld, Rect *devRect);
  49. OSErr CreateGWorldFromPict(GWorldPtr *pictGWorld, PicHandle pictH);
  50. OSErr CreateGWorldFromPictResource(GWorldPtr *pictGWorldP, short pictResID);
  51. OSErr CreateGrafPort(Rect *newPortRect, GrafPtr *newPort);
  52. OSErr CreateGrafPortFromPictResource(short pictID, GrafPtr *offScrnPort);
  53. void DisposeGrafPort(GrafPtr doomedPort);
  54. void GetDItemText(DialogPtr dlgP, short itemNum, Str255 itemStr);
  55. void SetDItemText(DialogPtr dlgP, short itemNum, Str255 itemStr);
  56. void GetDItemRect(DialogPtr dlgP, short itemNum, Rect *itemRect);
  57.  
  58.  
  59.